package com.yunxin.core.utils.infra.support.rabbit;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;

/**
 * @author zero°
 * @since 2024-01-02
 */
@Slf4j
public class RabbitConfirmCallback implements RabbitTemplate.ConfirmCallback{
    @Override
    public void confirm(CorrelationData correlationData, boolean ack, String cause) {
        log.info("MessageConfirm correlationData: {}, ack: {}, cause: {}", correlationData, ack, cause);
    }
}
